<?php

/**
 *
 */
class Z_Html_H extends Z_Component {

    public function __construct($level, $text) {
        parent::__construct("<h{$level}>","</h{$level}>");
        $this->add(new Z_Html_Text($text));
    }

}